package com.modificial.springboot.hello;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author modificial
 * @data 2018/12/3
 * @since 8:15
 */
@Controller
@RequestMapping("/html")
public class HtmlController {
    /**
     * 跳转主页
     *
     * @return
     */
    @GetMapping("/index")
    public String index() {

        return "index";
    }

    /**
     * 跳转403页面
     *
     * @return
     */
    @GetMapping("/403")
    public String forbidden() {

        return "403";
    }
}
